home *** CD-ROM | disk | FTP | other *** search
- on smove sold, stime, xdest, ydest
- set sx to the locH of sprite sold
- set sy to the locV of sprite sold
- set incx to ((1.0 * xdest) - sx) / stime
- set incy to ((1.0 * ydest) - sy) / stime
- startTimer()
- repeat while the timer < stime
- set ptime to the timer
- set the locH of sprite sold to sx + (incx * ptime)
- set the locV of sprite sold to sy + (incy * ptime)
- updateStage()
- end repeat
- set the locH of sprite sold to xdest
- set the locV of sprite sold to ydest
- updateStage()
- end
-